/* pages/communication/communication.wxss */
@import '../../miniprogram_npm/@vant/weapp/common/index.wxss';

/* index.wxss */
.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.comment-list {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.comment-item {
  display: flex;
  margin-bottom: 20px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 10px;
}

.comment-content {
  flex: 1;
}

.username {
  display: flex;
  font-weight: bold;
  margin-bottom: 5px;
}

.datetime {
  font-weight: bold; //设置字体加粗。
  color: #333; //设置文字颜色为深灰色。
  font-size: 14px; //设置字体大小为 14 像素。
  margin-bottom: 10px; //设置底部外边距为 5 像素。
}

.content {
  font-weight: bold;
  font-size: 30px;
  display: flex;
  margin-bottom: 10px;
  color: #666; //设置文字颜色为较浅的灰色。
  line-height: 2; //设置行高为 2 倍，使文本更易读。
}

.comment-image {
  width: 80%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 25px; //设置圆角半径为 5 像素。
  // margin-top: 10px;
  box-shadow: 0 2px 4px rgba(2, 2, 2, 2);
}

.input-area {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: #f5f5f5;
  border-top: 1px solid #ddd;
}

.comment-input {
  flex: 1;
  height: 20px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-right: 10px;
}

.upload-button {
  padding: 2px 2px;
  border-radius: 5px;
  background-color: #1aad19;
  color: white;
  border: none;
  cursor: pointer;
}
.send-button {
  padding: 5px 20px;
  border-radius: 5px;
  background-color: #1aad19;
  color: white;
  border: none;
  cursor: pointer;
}

.upload-button[disabled], .send-button[disabled] {
  background-color: #ccc;
}

.preview-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  margin-left: 10px;
}









